package com.lesson4.factorymethod.pizzastore.order;

import com.lesson4.factorymethod.pizzastore.pizza.LDCheesePizza;
import com.lesson4.factorymethod.pizzastore.pizza.LDHujiaoPizza;
import com.lesson4.factorymethod.pizzastore.pizza.Pizza;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/27 17:46
 */
public class LDOrderPizza extends OrderPizza
{
    @Override
    Pizza createPizza(String orderType)
    {
        Pizza pizza = null;
        if(orderType.equals("Cheese")){
            pizza = new LDCheesePizza();
        }else if(orderType.equals("Hujiao")){
            pizza = new LDHujiaoPizza();
        }
        return pizza;
    }
}
